package com.jacars.biz.user.dao.service;

import com.jacars.biz.user.dao.model.JsptRoleUser;
import com.jacars.common.model.JsptRole;
import com.jacars.common.service.ISuperService;

import java.util.List;

/**
 * @author zlt
 */
public interface JsptRoleUserService extends ISuperService<JsptRoleUser> {
    int deleteUserRole(Long userId, Long roleId);

    int saveUserRoles(Long userId, Long roleId);

    /**
     * 根据用户id获取角色
     *
     * @param userId
     * @return
     */
    List<JsptRole> findRolesByUserId(Long userId);

    /**
     * 根据用户ids 获取
     *
     * @param userIds
     * @return
     */
    List<JsptRole> findRolesByUserIds(List<Long> userIds);
}
